<?php


namespace App\Entity\Teacher;


use App\Entity\BaseEntity;

/**
 * Class StudentDto
 * @package App\Entity\Teacher
 * @property string $name
 * @property string $sid
 * @property string $code
 * @property int $gender
 * @property int $classesId
 */
class StudentDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'classesId' => 'required',
            'name' => 'required',
            'sid' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'classesId.required' => '班级ID参数错误',
            'name.required' => '请输入姓名',
            'sid.required' => '请输入学号',
        ];
    }
}
